package org.example.chat.api;


public class Constant {

    /***    =============== 好友请求状态   ==============  ***/
    /** 等待通过 */
    public static final Integer FRIEND_REQUEST_STATUS_WAIT = 0;
    /** 已添加 */
    public static final Integer FRIEND_REQUEST_STATUS_PASSED = 1;
    /** 已拒绝 */
    public static final Integer FRIEND_REQUEST_STATUS_REJECT = 2;
    /** 已过期 */
    public static final Integer FRIEND_REQUEST_STATUS_EXPIRE = 3;



    /***    =============== redis key  ==============  ***/
    /** 缓存用户群组的key前缀 */
    public static final String USER_GROUP_KEY_PREFIX = "user:groups:";
    /** 分布式锁key前缀 */
    public static final String LOCK_PREFIX = "lock:";
    /** 缓存用户群组的key前缀 */
    public static final String CACHE_DATA_PREFIX = "cache_data:";

    /***    =============== 用户状态  ==============  ***/
    public static final int USER_STATUS_NORMAL = 0;
    public static final int USER_STATUS_LOCK = 1;
    public static final int USER_STATUS_PERMANENT_BAN = 2;

    /***    =============== 加好友方式  ==============  ***/
    public static final int ADDED_FOR_FRIEND_METHOD_DIRECT = 0;
    public static final int ADDED_FOR_FRIEND_METHOD_AGREE = 1;


    /***    =============== 日志类型  ==============  ***/
    public static final int LOG_TYPE_USER_LOGIN = 0;
}
